package com.gc.logger.strategy

import android.util.Log
import com.gc.logger.LogUtils
import com.gc.logger.interfaces.ILogStrategy

open class DefLogStrategy(override var logStrategy: String= LogUtils.LOG_ALL) : ILogStrategy {
    override fun isCanPrint(isDebug:Boolean, priority:Int, contentType: LogUtils.LogType,tag:String): Boolean {
        if(isDebug){
            return true
        }else{
            if(contentType== LogUtils.LogType.System ||priority>= Log.ERROR){
                return true
            }
        }
        return false
    }
}